package com.kunbo.cn.service.impl.uflo;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kunbo.cn.dao.uflo.TipsDao;
import com.kunbo.cn.entity.uflo.entity.Tips;
import com.kunbo.cn.service.uflo.TipsService;

/**
 * <p>
 * 任务注释表 服务实现类
 * </p>
 *
 * @author liuyu
 * @since 2018-03-20
 */
@Service
public class TipsServiceImpl implements TipsService {
	@Autowired
	private TipsDao tipsDao;
	
	public Tips insert(Tips tips) {
		return tipsDao.save(tips);
	}

	@Override
	public Tips selectById(Integer tId) {
		// TODO Auto-generated method stub
		return tipsDao.findOne(tId);
	}

	@Override
	public Tips selectByProcInsId(String procInsId) {
		// TODO Auto-generated method stub
		return tipsDao.findByProcInsId(procInsId);
	}

	@Override
	public Tips findByTName(String tName) {
		// TODO Auto-generated method stub
		return tipsDao.getTName(tName);
	}
}
